import request from "@/utils/request";

// 查询小程序首页轮播图列表
export function listSlideshow(query) {
  return request({
    url: "/slideshow/slideshow/list",
    method: "get",
    params: query,
  });
}

// 查询小程序首页轮播图详细
export function getSlideshow(id) {
  return request({
    url: "/slideshow/slideshow/" + id,
    method: "get",
  });
}

// 新增小程序首页轮播图
export function addSlideshow(data) {
  return request({
    url: "/slideshow/slideshow",
    method: "post",
    data: data,
  });
}

// 修改小程序首页轮播图
export function updateSlideshow(data) {
  return request({
    url: "/slideshow/slideshow",
    method: "put",
    data: data,
  });
}

// 删除小程序首页轮播图
export function delSlideshow(id) {
  return request({
    url: "/slideshow/slideshow/" + id,
    method: "delete",
  });
}
